package com.qingcheng.dao;

import com.qingcheng.pojo.system.AdminRole;
import com.qingcheng.pojo.system.AdminRoles;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * Created by yuanxin
 * Date:2019/6/30
 * Time:20:14
 */
public interface AdminRoleMapper extends Mapper<AdminRole> {
    @Select("select role_id as roleId from tb_admin_role where admin_id = #{adminId}")
    public List<Integer> findRoleIdsByAdminId(@Param("adminId") Integer adminId);
}
